/*  This is mada by Jackson    
 *  This source is made by Funms Team
 *  功能：伤害皮肤
 *  
 *  @Author Jackson 
 */

/* global im */

var status = -1;

function start() {
    action(1, 0, 0);
}


function action(mode, type, selection) {
    switch (mode) {
        case 0: //上一步
            status--;
            break;
        case 1: //下一步
            status++;
            break;
    }
    switch (status) {
        case 0:
            im.askYesNoS("使用后将替换现在拥有的伤害皮肤效果！是否使用#b#t" + im.getItemId() + "##k？");
            break;
        case 1:
            im.used();
            im.updateDamageSkin(35);
            im.dropMessage(-2, "使用了新的伤害皮肤！");
            im.dispose();
            break;
        default:
            im.dispose();
            break;
    }
}